# Activate appropriate parts below, comment out others:
#-----------------  LINUX Intel Fortran ifort/gcc ---------------
CMACH=PC_LINUX1
F_COMP=pgfortran

# If using MPI libraries:
MPI_PATH=/home/rpsouto/bin/mpich/mpich-1.2.7p1/gnu/ch_shmem

PAR_INCS=-I$(MPI_PATH)/include
PAR_LIBS=-L$(MPI_PATH)/lib -lmpich
OLAM_MPI=yes

CUDA_PATH=/usr/local/cuda
CUDA_LIBS=-L$(CUDA_PATH)/lib64 -lcuda -lcudart -lcublas
CUDA_INCS=-I$(CUDA_PATH)/include
CUDA_OPTS=-O2 -arch=sm_20 -fmad false
CUDA_COMP=nvcc

# OPTIMIZED:
#F_OPTS=-O2 -mp -Mcuda
F_OPTS=-O2 -ta=nvidia,time -Minfo=accel 


# DEBUG:

C_COMP=gcc
#C_COMP=nvcc
C_OPTS=-O2 -DUNDERSCORE -DLITTLE

NCARG_DIR=/usr/local/ncl/precompiled/ncarg-5.2.0
LIBNCARG=-L$(NCARG_DIR)/lib -lncarg -lncarg_gks -lncarg_c \
          -L/usr/lib64 -lX11 -ldl -lpthread

HDF5_LIBS=-L/usr/lib -lhdf5 -lhdf5_fortran -lhdf5_hl -lz -lm
HDF5_INCS=-I/usr/include

NETCDF_LIBS=-L/usr/lib -lnetcdf


#HDF5_LIBS=-L/usr/local/hdf5-1.8.2/lib -lhdf5 -lhdf5_fortran -lhdf5_hl -lz -lm 
#HDF5_INCS=-I/usr/local/hdf5-1.8.2/include 


#NETCDF_LIBS=-L/usr/local/netcdf-4.0/lib -lnetcdf 
#NETCDF_INCS=-I/usr/local/netcdf-4.0/include 


LOADER=$(F_COMP)
LOADER_OPTS= $(F_OPTS)

# to allow ifort compiler to link with pg-compiled ncar graphics:
# LIBS=-z muldefs -L/opt/pgi/linux86-64/5.2/lib -lpgftnrtl -lpgc
ARCHIVE=ar rs

#-----------------------------------------------------------
